/**
 * 自来水水箱
 * */
#define _HEADER_WaterTank0_H

#ifndef _HEADER_WaterLine_H
#include "WaterLine.h"
#endif
#ifndef _HEADER_Switch_H
#include "Switch.h"
#endif


class WaterTank0
{
public:
    //自来水罐是否是满标记
    bool isFullState = false;
public:
    //出水泵
    Switch outPump;
    //水位检测设备
    WaterLine waterLine;

    //进、出水开关
    Switch waterSwitchOut;
    Switch waterSwitchIn;
public:
    //自来水罐是否是满的
    bool isFull();

    //打开、关闭自来水进水开关
    void openWaterIn();
    void closeWaterIn();
    //打开、关闭自来水罐出水开关
    void openWaterOut();
    void closeWaterOut();
    //打印状态
    void toString(char* inStr);
};